package com.springboot.blog.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.springboot.blog.entity.Article;
import com.springboot.blog.entity.vo.ArticleVO;
import com.springboot.blog.mapper.ArticleMapper;
import com.springboot.blog.service.IArticleService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 文章表 服务实现类
 * </p>
 *
 * @author 4vsy
 * @since 2020-06-29
 */
@Service
public class ArticleServiceImpl extends ServiceImpl<ArticleMapper, Article> implements IArticleService {
    @Override
    public Page<ArticleVO> pageVO(Page<ArticleVO> page, Wrapper<ArticleVO> queryWrapper) {
        return baseMapper.pageVO(page, queryWrapper);
    }

    @Override
    public ArticleVO selectWithOther(Integer id) {
        return baseMapper.selectWithOther(id);
    }
}
